package com.licq.ldoc.domain.support;

import java.math.BigDecimal;
import java.text.DecimalFormat;

public class DecimalToStringBehavior extends ToStringBehavior {

	@Override
	protected String doToString(Object obj) {
		BigDecimal decimal = (BigDecimal) obj;
		DecimalFormat format = new DecimalFormat("#0.00");
		return format.format(decimal);
	}
	
}
